<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<?php
//Tiina Võsumägi phpkursus1109 06.11

echo "
<form action=$_SERVER[SCRIPT_NAME] method=post>
<h2>Kangelase andmed</h2>
<table border=1>
<tr>
  <td>Nimi</td>
  <td><input type=text name=caption size=45></td>
</tr>
<tr>
  <td>Klass</td>
  <td>
    <select name=date_activation>
      <option value=1>I klass</option>
      <option value=2>II klass</option>
      <option value=3>III klass</option>
      <option value=4>IV klass</option>
      <option value=5>V klass</option>
    </select>
  </td>
</tr>
<tr>
  <td>Rass</td>
  <td>
    <select name=date_activation>
      <option value=1>Europiidne</option>
      <option value=2>Negriidne</option>
      <option value=3>Mongoliidne</option>
    </select>
  </td>
</tr>
<tr>
  <td>Sugu</td>
  <td>Mees <input type=radio name=active value=1>
      Naine <input type=radio name=active value=2>
  </td>
</tr>
<tr>
<td>Lemmikloom kaasas</td>
<td><input type=checkbox name=newsletter value=1></td>
</tr>
<tr>
  <td>Kirjeldus</td>
  <td><textarea name=content 
  rows=5 cols=40></textarea></td>
</tr>
<tr>
<td colspan=2><center><input type=submit name=nupp value=Sisesta></center></td>
</tr>
</table>
</form>
";

print_r($_POST);



?>